import 'package:flutter/material.dart';
import 'package:mall/screens/store/components/store_category.dart';

class StoreCategoryScreenArgs {
  final int storeId;
  final bool selectable;

  StoreCategoryScreenArgs(
    this.storeId,
    this.selectable,
  );
}

/// 店铺分类
class StoreCategoryScreen extends StatefulWidget {
  static const routeName = "/StoreCategoryScreen";
  final StoreCategoryScreenArgs args;

  const StoreCategoryScreen({
    Key key,
    @required this.args,
  }) : super(key: key);

  @override
  _StoreCategoryScreenState createState() => _StoreCategoryScreenState();
}

class _StoreCategoryScreenState extends State<StoreCategoryScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("店铺分类"),
      ),
      body: StoreCategory(
        storeId: widget.args.storeId,
        selectable: true,
      ),
    );
  }
}
